package org.theSeed.pojo.ro;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Getter;
import lombok.Setter;
import org.theSeed.rbacBaseCommon.pojo.sysEnum.ResourceTypeEnum;

import javax.validation.constraints.NotEmpty;
import java.util.Map;

@Getter
@Setter
public class EditResourceRo {
    private String id;

    /**
     * 父编码
     */
    @NotEmpty(message = "父编码")
    private String parentCode;

    /**
     * 菜单名称
     */
    @NotEmpty(message = "resourceName不能为空")
    private String resourceName;

    /**
     * 菜单编码
     */
    private String resourceCode;

    /**
     * 菜单类型
     * {@link ResourceTypeEnum}
     */
    @NotEmpty
    private String resourceType;

    /**
     * 描述
     */
    private String describStr;

    /**
     * 扩展信息
     */
    @TableField(typeHandler = JacksonTypeHandler.class)
    private Map<String,Object> extInfo;
}
